<?php
// 更改个人信息
// header("content-type:text/html;charset=UTF-8");
include_once("conn.php");
include_once("u_getLoginInfo.php");
if($status != 1){
    die("<script>alert('账户处于待注销状态，不可操作！');history.go(-1);</script>");
}
$user_name = $_POST['userName'];
$user_phone = $_POST['userPhone'];

$update_info = "UPDATE user_infos SET user_Name = '" . $user_name . "', user_Phone = '" . $user_phone . "' WHERE user_ID = '" . $userID . "'";
if (mysqli_query($connect_DB, $update_info)) {
    session_unset();
    session_destroy();
    echo "<script type='text/javascript'>alert('密码个人信息成功！请重新登录同步数据！');location='user_login.html';</script>";
    $connect_DB->close();
    exit();
} else {
    echo "<script type='text/javascript'>alert('个人信息修改失败！请重试！');history.go(-1);</script>";
}

$connect_DB->close();
?>